package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.RoleUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface RoleUserMapper extends BaseMapper<RoleUser> {

    @Select("SELECT role_id FROM tb_role_user WHERE user_id=#{userId}")
    Long[] findRoleIdByUserId(@Param("userId") Long userId);
}
